﻿using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Text;

namespace ModelDto
{
    /// <summary>
    /// 微信配置信息
    /// </summary>
    public class WXConfig : IOptions<WXConfig>
    {
        /// <summary>
        /// 
        /// </summary>
        public WXConfig Value => this;

        /// <summary>
        /// 小程序参数
        /// </summary>
        public WXConfig_WXApplet WXApplet { get; set; }
        /// <summary>
        /// 公众号参数
        /// </summary>
        public WXConfig_WXPublic WXPublic { get; set; }
    }

    /// <summary>
    /// 小程序参数
    /// </summary>
    public class WXConfig_WXApplet
    {
        /// <summary>
        /// AppId
        /// </summary>
        public string AppId { get; set; }
        /// <summary>
        /// AppSecret
        /// </summary>
        public string AppSecret { get; set; }
    }

    /// <summary>
    /// 公众号参数
    /// </summary>
    public class WXConfig_WXPublic
    {
        /// <summary>
        /// AppId
        /// </summary>
        public string AppId { get; set; }
        /// <summary>
        /// AppSecret
        /// </summary>
        public string AppSecret { get; set; }
    }
}
